function sum2() {
    var args = [];
    for (var _i = 0; _i < arguments.length; _i++) {
        args[_i] = arguments[_i];
    }
    return args.reduce(function (s, n) { return s + n; }, 0);
}
console.log(sum2(1, 2, 3));
function push(arr) {
    var args = [];
    for (var _i = 1; _i < arguments.length; _i++) {
        args[_i - 1] = arguments[_i];
    }
    arr.push.apply(arr, args);
    return arr;
}
var hdms = ["后盾人"];
console.log(push(hdms, 'hello', 111));
